<?php

class Damages_Methods_Data_Email_Tag {

  /**
   *
   * @var string 
   */
  public $code;

  /**
   *
   * @var string 
   */
  public $name;

  /**
   *
   * @var string 
   */
  public $description;

  public function __construct($tag) {
    $this->tag = sprintf(Damages_Tags::TAG_TEMPLATE, $tag->code);
    $this->code = $tag->code;
    $this->name = $tag->name;
    $this->description = $tag->description;
  }

}